/**
 * SIX VULN - http://code.google.com/p/six-vuln/
 * Copyright (C) 2006
 *   National Institute of Advanced Industrial Science and Technology (AIST)
 *   Registration Number: H18PRO-538
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package jp.go.aist.six.vuln.repository.scap.nvd;

import jp.go.aist.six.vuln.model.scap.vulnerability.VulnerabilityType;
import org.springframework.data.repository.PagingAndSortingRepository;




/**
 * The prescription of the NVD repository interface.
 *
 * @author  Akihito Nakamura, AIST
 * @version $Id: NvdVulnerabilityRepository.java 410 2013-03-04 10:26:52Z nakamura5akihito@gmail.com $
 */
public interface NvdVulnerabilityRepository
    extends
    QueryDslPredicateExecutor<VulnerabilityType>, //pending!!!
    PagingAndSortingRepository<VulnerabilityType, String>   //findAll():Iterable
//    MongoRepository<VulnerabilityType, String>            //findAll():List
{

    /**
     * Returns the vulnerability entry of the specified CVE ID.
     *
     * @param   cve_id
     *  the CVE ID of the vulnerability.
     */
    public VulnerabilityType findByCveId( String cve_id );

}
//

